<% form_for(@article) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </p>
  <p>
    <%= f.label :price %><br />
    <%= f.text_field :price %>
  </p>
	<p>
		<%= f.label :category_id%><br>
		<%# The rails doc is a pain in the ass.  The thing that fixed it is to leave out :article as a first argument, as the documentation suggests!! I wasted an hour or so... %>
		<%# select for category id for this article, something out of the collection of all categories.  id is the value, name is what gets displayed. %>
		<%= f.collection_select(:category_id, Category.find(:all), :id, :name, {:prompt => "Select a Category"}  ) %>
	</p>
	<p>
    <%= f.label :image_url %><br />
    <%= f.text_field :image_url %> 
  </p>
  <p>
    <%= f.submit button_label %>
  </p>
<% end %>